package cn.battlecruiser.vishnu.auth.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import cn.battlecruiser.vishnu.auth.feign.fallback.UserServiceFallbackImp;
import cn.battlecruiser.vishnu.common.model.Userinfo;


@FeignClient(name="vishnu-userinfo",fallback=UserServiceFallbackImp.class )
public interface UserService {
	/**
     * 通过用户名查询用户、角色信息
     *
     * @param username 用户名
     * @return UserVo
     */
    @GetMapping("/user/findUserByUsername/{username}")
    Userinfo findUserByUsername(@PathVariable("username") String username);
}
